﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectManage.Core.Entity.SYS
{

    [Table("sys_Audit")]
    [Comment("数据字典表")]
    public class SysAudit : IEntity
    {
        [Key]
        public Guid ID { get; set; }

        [Comment("表名")]
        [Required, MaxLength(50)]
        public string  Table { get; set; }   

        [Comment("更新的列")]
        [Required, MaxLength(50)]
        public string Column { get; set; } 

        [Comment("新值")]
        public string NewValue { get; set; } 

        [Comment("旧值")]
        public string OldValue { get; set; }  

        [Comment("操作时间")]
        public DateTime CreatedTime { get; set; } 

        [Comment("操作人")]
        [MaxLength(50)]
        public string UserId { get; set; } 

        [Comment("操作方式")]
        [MaxLength(20)]
        public string Operate { get; set; } 
    }
}
